<!--
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<div class="ddp-layout-popuptype" *ngIf="isShow">
  <em class="ddp-bg-popup"></em>
  <div class="ddp-ui-popup">
    <!-- 제목 & 버튼 영역 -->
    <div class="ddp-ui-popup-title">
      <span class="ddp-txt-title-name">{{ 'msg.permission.ui.set-ws-perms-schema' | translate }}</span>
      <div class="ddp-ui-pop-buttons">
        <a (click)="close()" href="javascript:" class="ddp-btn-pop">{{ 'msg.comm.btn.cancl' | translate }}</a>
        <a (click)="done()" href="javascript:" class="ddp-btn-pop ddp-bg-black">{{ 'msg.comm.btn.done' | translate }}</a>
      </div>
    </div>
    <!-- // 제목 & 버튼 영역 -->
    <!-- 내용 영역 -->
    <div class="ddp-ui-popup-contents" *ngIf="roleSet">
      <!-- Contents Title -->
      <div *ngIf="workspace" class="ddp-schema-top">
        <span class="ddp-title">User roles of <strong>{{ workspace.name }}</strong></span>
        <a (click)="openChangePermissionSchema()" href="javascript:" class="ddp-btn-line2">
          <em class="ddp-icon-btnoption"></em>{{ 'msg.permission.ui.change-schema' | translate }}
        </a>
      </div>
      <!-- // Contents Title -->

      <app-permission-schema
        [roleSet]="roleSet"
        [editMode]="isPermissionManager() && isEditMode"></app-permission-schema>
    </div>
    <!-- // 내용 영역 -->

  </div>

</div>

<app-permission-schema-change></app-permission-schema-change>
